package com.zzl.bonds.ticket.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 票据审批流程表
 *
 * @author wztsl
 * @date 2021-11-30 14:13:19
 */
@Data
@TableName("t_ticket_process")
@ApidocModel
public class TicketProcessEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.UUID)
    @ApidocModelProperty(description = "主键")
    private String id;
    @ApidocModelProperty(description = "开立申请表的主键id")
    private String ticketOpenId;
    @ApidocModelProperty(description = "异常撤回申请id")
    private String exceptionId;
    @ApidocModelProperty(description = "审批流程id")
    private String approveId;
    @ApidocModelProperty(description = "审批类型：1 开立,2开立撤回,4签收(开立签收审批),14 签收(转让签收审批),12开立签收撤回,13转让签收撤回,7 转让,8转让撤回10, 融资,11 兑付")
    private String approveType;
    @ApidocModelProperty(description = "审批流程状态:1 审批中 2审核未通过 3审核通过")
    private String approveStatus;
    @ApidocModelProperty(description = "转让id")
    private String ticketTransferId;
    @ApidocModelProperty(description = "融资id")
    private String ticketFinaceId;
    @ApidocModelProperty(description = "兑付id")
    private String ticketCashId;
    @ApidocModelProperty(description = "其他id")
    private String ticketOtherId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "创建时间", validate = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "修改时间", validate = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @ApidocModelProperty(description = "创建人")
    private Integer creatorId;
    @ApidocModelProperty(description = "修改人")
    private Integer updaterId;
    @ApidocModelProperty(description = "备注")
    private String remark;
    @ApidocModelProperty(description = "企业id")
    private String enterpriseId;
    @ApidocModelProperty(description = "1 表示删除，0 表示未删除")
    @TableField(value = "is_deleted", fill = FieldFill.INSERT)
    @TableLogic(value = "0", delval = "1")
    private Integer isDeleted;
    @TableField(exist = false)
    @ApidocModelProperty(description = "流程使用字段")
    private String ticketId;
}
